import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import '@/styles/common.scss'
import { createPinia } from 'pinia'
import { lazyPlugin } from '@/directives'
import { componentPlugin } from './components'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// pinia 本地持久化插件
const store = createPinia()
store.use(piniaPluginPersistedstate)

const app = createApp(App);
// 自定义指令
app.use(lazyPlugin).use(componentPlugin).use(store).use(router).mount('#app')
